<?php
	include ('include/session.php');
?>

<html>
	<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 
	</head>
	<style>
		.p
		{
		border: solid; 
		}
	</style>
<?php	
		include ('include/conn.php');
		include ('include/config.php');
		$id=$_GET['id']; 
		$res="select * from tab where id=".$id; 
		$res=mysql_query($res);
		while($i=mysql_fetch_object($res))
		{
	echo "<form action='edit.php?id=$id' method='POST' > ";

			echo '<textarea name="id" style="display:none;" cols="50" rows="1">'.$id.'</textarea><br>';
			echo '主题：<br><textarea name="content" cols="20" rows="4">'.$i->content.'</textarea><br>';
			echo '昵称：<br><textarea name="name"  cols="20" rows="4">'.$i->name.'</textarea><br>';
			echo 'QQ：<br><textarea  name="qq" cols="20" rows="4">'.$i->qq.'</textarea><br>';
			echo '留言时间：<br><textarea  name="time" cols="20" rows="4">'.$i->time.'</textarea><br>';
			echo 'IP：<br><textarea  name="ip" cols="20" rows="4">'.$i->ip.'</textarea><br>';
			echo '<input type=submit value="提交">';
			echo "</form>";
		}
	?>